package cn.s1995.sloth.bizs.entity;

import cn.s1995.sloth.bizs.entity.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 购物车
 *
 * @author Lex
 * @date 2023-12-20 03:08:53
 */
@Data
@Accessors(chain = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Schema(description = "购物车")
@TableName("biz_cart")
public class Cart extends BaseEntity {


	/**
	* ID
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "ID")
    private Long id;

	/**
	* 用户id
	*/
    @Schema(description = "用户id")
    private Long uid;

	/**
	* 店铺id
	*/
    @Schema(description = "店铺id")
    private Long shopId;

	/**
	* 产品id
	*/
    @Schema(description = "产品id")
    private Long prodId;

	/**
	* sku id
	*/
    @Schema(description = "sku id")
    private Long skuId;

	/**
	 * 满减活动ID
	 */
	@Schema(description = "满减活动ID")
	private Long discountId;

	/**
	* 数量
	*/
    @Schema(description = "数量")
    private Integer num;
}
